From 811efadd02b9d950d00544ab0dcff303d5ba4568 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 6 Mar 2023 07:12:58 -0700 Subject: [PATCH] correct input validation for interpolate time option. (#1025) * fix input validation on interpolate time option. * update filter info for interpolate time option. --- interpolate.h | 2 +- reference/filter1.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interpolate.h b/interpolate.h index 99b3ea147..5aabe1aa2 100644 --- a/interpolate.h +++ b/interpolate.h @@ -52,7 +52,7 @@ private: QVector args = { { "time", &opt_time, "Time interval in seconds", nullptr, - ARGTYPE_BEGIN_EXCL | ARGTYPE_BEGIN_REQ | ARGTYPE_INT, + ARGTYPE_BEGIN_EXCL | ARGTYPE_BEGIN_REQ | ARGTYPE_FLOAT, "0", nullptr, nullptr }, { diff --git a/reference/filter1.txt b/reference/filter1.txt index 8e90e9306..cab7d2b7c 100644 --- a/reference/filter1.txt +++ b/reference/filter1.txt @@ -21,7 +21,7 @@ option radius nosort Inhibit sort by distance to center boolean https://www.g option radius maxcount Output no more than this number of points integer 1 https://www.gpsbabel.org/WEB_DOC_DIR/filter_radius.html#fmt_radius_o_maxcount option radius asroute Put resulting waypoints in route of this name string https://www.gpsbabel.org/WEB_DOC_DIR/filter_radius.html#fmt_radius_o_asroute interpolate Interpolate between trackpoints https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html -option interpolate time Time interval in seconds integer 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_time +option interpolate time Time interval in seconds float 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_time option interpolate distance Distance interval in miles or kilometers string https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_distance option interpolate route Interpolate routes instead boolean https://www.gpsbabel.org/WEB_DOC_DIR/filter_interpolate.html#fmt_interpolate_o_route height Manipulate altitudes https://www.gpsbabel.org/WEB_DOC_DIR/filter_height.html -- 2.30.2